import request from '@/router/axios'

export const getPage = (current, size, params) => {
  return request({
    url: '/biz-api/pv-supplier/supplierrecommend/page',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}

export const remove = ids => {
  return request({
    url: '/biz-api/pv-supplier/supplierrecommend/remove',
    method: 'post',
    params: {
      ids
    }
  })
}

export const save = row => {
  return request({
    url: '/biz-api/pv-supplier/supplierrecommend/save',
    method: 'post',
    data: row
  })
}

export const submit = row => {
  return request({
    url: '/biz-api/pv-supplier/supplierrecommend/submit',
    method: 'post',
    data: row
  })
}

export const getDetail = id => {
  return request({
    url: '/biz-api/pv-supplier/supplierrecommend/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export const getByInstId = processInstanceId => {
  return request({
    url: '/biz-api/pv-supplier/supplierrecommend/detail',
    method: 'get',
    params: {
      processInstanceId
    }
  })
}